package com.tulingxueyuan.mall.modules.ums.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tulingxueyuan.mall.modules.ums.model.UmsMemberReceiveAddress;

import java.util.List;

/**
 * <p>
 * 会员收货地址表 服务类
 * </p>
 *
 * @author XuShu
 * @since 2024-05-19
 */
public interface UmsMemberReceiveAddressService extends IService<UmsMemberReceiveAddress> {

    /**
     * 收获地址的新增
     *  (method = "post"), (url = "/member/address/add");
     */
    boolean add(UmsMemberReceiveAddress address);

    /**
     * 收获地址的修改
     *  (method = "post"), (url = `/member/address/update/${checkedItem.id}`);
     * @param address
     * @return
     */
    boolean edit(UmsMemberReceiveAddress address,Long id);

    /**
     * 删除收货地址
     * (method = "post"), (url = `/member/address/delete/${checkedItem.id}`);
     * @param id
     * @return
     */
    boolean delete( Long id);

    /**
     * 获取收货地址列表
     * this.axios.get("/member/address/list").then((res) => {
     *         this.list = res;
     *       });
     */
    List<UmsMemberReceiveAddress> listByMemberId();
}
